﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using PrjAssessModels.BaseModels;

namespace PrjAssess.Models
{
    public class PrjAssessDb : System.Data.Entity.DbContext
    {
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Project>().Ignore(t => t.FromExcel);
            modelBuilder.Entity<Project>().Ignore(t => t.ContentGroup);
            modelBuilder.Entity<Project>().Ignore(t => t.PrjExtent);
            base.OnModelCreating(modelBuilder);
            
        }
        public DbSet<MaterialBuryItem> MaterialBuryItems { get; set; }
        public DbSet<Project> Projects { get; set; }
        public DbSet<ProjectExtent> ProjectExtents { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<WorkItem> WorkItems { get; set; }
        public DbSet<AssessItem> AssessItems { get; set; }
        public DbSet<ParaItem> ParaItems { get; set; }



    }
}